package com.kwedding.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.kwedding.bean.TB_Customer;

public interface TB_CustomerMapper {
	TB_Customer selectByPrimaryKey(@Param("customerId") Long customerId);

	int insert(TB_Customer tb_Customer);

	List<TB_Customer> getCustomerListByRefIds(@Param("searchName") String searchName,
			@Param("refIds") List<Long> refIds, @Param("brandId") Long brandId, @Param("isSuccess") Boolean isSuccess);

	int updateSelective(TB_Customer tb_Customer);

	int selectCustomerCount(@Param("refId") Long refId, @Param("startTime") Date startTime,
			@Param("endTime") Date endTime,@Param("brandId") Long brandId);

	int getCustomerSuccess(@Param("refId") Long refId, @Param("startTime") Date startTime,
			@Param("endTime") Date endTime,@Param("brandId") Long brandId);

	int selectCustomerCountByRefIds(@Param("RefIds") List<Long> RefIds, @Param("startTime") Date startTime,
			@Param("endTime") Date endTime,@Param("brandId")Long brandId);

	int getCustomerSuccessByRefIds(@Param("RefIds") List<Long> RefIds, @Param("startTime") Date startTime,
			@Param("endTime") Date endTime,@Param("brandId")Long brandId);
}
